package com.sgzn.sgpay.service;

import com.sgzn.sgpay.model.request.*;
import com.sgzn.sgpay.model.response.SgsResultResponse;
import com.sgzn.sgpay.model.response.vo.UserMerchantDiscountVo;
import com.sgzn.sgpay.persistence.domain.TUserMerchantDiscount;

import java.util.List;

/**
 * Created by linliangfang 13580393408
 * DATETIME:2018/6/3 17:08
 * Description:
 */
public interface SgsUserMerchantDiscountService {

    /**
     * 初始化用户商户优惠记录
     */
    SgsResultResponse<String> iniUserMerchantDiscount(SgsUserMerchantDiscountAddRequest request);


    /**
     * 累加用户商户优惠积分
     */
    SgsResultResponse<String> increaseUserMerchantDiscount(SgsUserMerchantDiscountRequest request);

    /**
     * 消费用户商户优惠积分
     */
    SgsResultResponse<String> decreaseUserMerchantDiscount(SgsUserMerchantDiscountRequest  request);

    /**
     * 查询消费用户商户优惠积分(userId,MerchantId)
     */
    SgsResultResponse<TUserMerchantDiscount> queryUserMerchantDiscount(SgsUserMerchantDiscountRequest request);

    /**
     * 查询用户商户优惠列表
     */
    SgsResultResponse<List<UserMerchantDiscountVo>> queryList(SgsUserMerchantDiscountListRequest request);


}
